package com.itheima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.domain.combat.Dimension;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface DimensionMapper extends BaseMapper<Dimension> {
    //根据灵魂的Id查询维度
    @Select("SELECT * FROM tb_dimension WHERE soul_id = #{id}")
    List<Dimension> findDimensionBySoulId(@Param("id") Integer id);
}
